
#include <QtGui>

#include "nmainwindow.h"

int main(int argc, char *argv[]){
     QApplication app(argc, argv);

     QCoreApplication::setOrganizationName("Fudan");
     QCoreApplication::setOrganizationDomain("fudan.edu");
     QCoreApplication::setApplicationName("Konvid");
          
     Q_INIT_RESOURCE(Konvid);

     QTranslator qttr;
     qttr.load("qt_" + QLocale::system().name(),
             QLibraryInfo::location(QLibraryInfo::TranslationsPath));
     app.installTranslator(&qttr);

     QTranslator mytr;
     mytr.load(":/Konvid_" +  QLocale::system().name());
     app.installTranslator(&mytr);
          
     app.setWindowIcon(QIcon(":/images/konvid"));
     
     NMainWindow win;
     win.show();

     return app.exec();
}
